home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CAnimCursor / CAcurError.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-30  |  895 b   |  59 lines  |  [TEXT/KAHL]

  1. /*
  2.  * CAcurError.c
  3.  * A useful supplement to CAnimCursor, when using the TCL.
  4.  * Version 1.0b3, 18 May 1992
  5.  *
  6.  * To use, change your application's MakeDesktop() method to:
  7.  *
  8.  *        void CYourApp::MakeError(void)
  9.  *        {
  10.  *            gError = new(CAcurError);
  11.  *        }
  12.  *
  13.  */
  14.  
  15.  
  16.  
  17. /********************************/
  18.  
  19. #include "CAcurError.h"
  20.  
  21. /********************************/
  22.  
  23. #include "CAnimCursor.h"
  24.  
  25. /********************************/
  26.  
  27.  
  28.  
  29. void CAcurError::SevereMacError(OSErr macErr)
  30. {
  31.     if (gAnimCursor != NULL) {
  32.         gAnimCursor->stopAnimating();
  33.     }
  34.     inherited::SevereMacError(macErr);
  35. }
  36.  
  37.  
  38.  
  39. Boolean CAcurError::CheckOSError(OSErr macErr)
  40. {
  41.     if (gAnimCursor != NULL) {
  42.         gAnimCursor->stopAnimating();
  43.     }
  44.     return inherited::CheckOSError(macErr);
  45. }
  46.  
  47.  
  48.  
  49. void CAcurError::PostAlert(short STRid, short index)
  50. {
  51.     if (gAnimCursor != NULL) {
  52.         gAnimCursor->stopAnimating();
  53.     }
  54.     inherited::PostAlert(STRid, index);
  55. }
  56.  
  57.  
  58.  
  59.